package com.demo.test.strategy;

import com.demo.test.strategy.iml.Strategy;

public class ContextCompany {
    private Strategy strategy;

    public ContextCompany(){
        //默认右脚先进公司
        this.strategy = new RightStrategy();
    }

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    public void judgment(){
        this.strategy.method();
    }
}
